package com.yuhs.zixing.study.design.pattern.dp002.structural.s003.decorator.d003;

/**
 * @description:
 * @author: yuhs
 * @date: 2022/5/1 9:39 PM
 */
public class Client {
    public static void main(String[] args) {
        Component component = new ConcreteComponent();
        //第一次修饰
        component = new ConcreteDecorator1(component);
        //第二次修饰
        component = new ConcreteDecorator2(component);
        //修饰后运行
        component.operate();
    }
}
